﻿using System.Web;
using System.Web.Optimization;

namespace ShopPowerTemplate.Presentation.Mvc
{
    public class BundleConfig
    {
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/common").Include(
                        "~/Scripts/ui.utils.js"));

            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-1.*"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
                        "~/Scripts/jquery-ui*",
                        "~/Scripts/jquery.jqGrid.min.js",
                        "~/Scripts/jquery.imask.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.unobtrusive*",
                        "~/Scripts/jquery.validate*"));

            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/localize").Include(
                        "~/Scripts/globalize.js",
                        "~/Scripts/cultures/grid.locale*",
                        "~/Scripts/cultures/ui.locale*",
                        "~/Scripts/cultures/globalize.culture*",
                        "~/Scripts/cultures/jquery.ui.datepicker*",
                        "~/Scripts/cultures/jquery-ui-i18n.min"));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                        "~/Content/site.css",
                        "~/Content/Site_Blue.css",
                        "~/Content/ui.jqgrid.css"));
        }
    }
}